package com.epfresh.supplier.entity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2016/5/10.
 */
public class BookInfoEntity {

    /**
     * tollFreeFeeOver;
     * allIncome : 2132524.11
     * todayIncome : 0
     * queryTotleIncome : 305027.63
     * tollfreeFee : 13100.53
     * queryDate : 2017-04
     * queryDateList : [{"name":"2017年","queryDate":"2017","child":[{"name":"2017年05月","queryDate":"2017-05","child":[]},{"name":"2017年04月","queryDate":"2017-04","child":[]},{"name":"2017年03月","queryDate":"2017-03","child":[]},{"name":"2017年02月","queryDate":"2017-02","child":[]},{"name":"2017年01月","queryDate":"2017-01","child":[]}]}]
     * trendList : [{"name":"01日","queryDate":"2017-04-01","specId":null,"price":21821.04,"type":1},{"name":"02日","queryDate":"2017-04-02","specId":null,"price":22534,"type":1},{"name":"03日","queryDate":"2017-04-03","specId":null,"price":15850.91,"type":1},{"name":"04日","queryDate":"2017-04-04","specId":null,"price":18829.46,"type":1},{"name":"05日","queryDate":"2017-04-05","specId":null,"price":21864.52,"type":1}]
     * detailList : [{"name":"04.05","queryDate":"2017-04-05","specId":null,"price":21864.52,"type":1},{"name":"04.04","queryDate":"2017-04-04","specId":null,"price":18829.46,"type":1},{"name":"04.03","queryDate":"2017-04-03","specId":null,"price":15850.91,"type":1},{"name":"04.02","queryDate":"2017-04-02","specId":null,"price":22534,"type":1},{"name":"04.01","queryDate":"2017-04-01","specId":null,"price":21821.04,"type":1}]
     * productList : [{"name":"粉西红柿","queryDate":null,"specId":31,"price":12372.78,"type":1},{"name":"昆明新土豆","queryDate":null,"specId":372,"price":7990.16,"type":1},{"name":"羊角椒","queryDate":null,"specId":166,"price":7925.81,"type":1},{"name":"卤水散豆腐（青峡）","queryDate":null,"specId":243,"price":7823.52,"type":1},{"name":"韭菜","queryDate":null,"specId":315,"price":6404.4,"type":1},{"name":"西兰花","queryDate":null,"specId":310,"price":5373.69,"type":1},{"name":"新蒜苔","queryDate":null,"specId":2518,"price":5040.36,"type":1},{"name":"上海青（大个头）","queryDate":null,"specId":26,"price":4383.92,"type":1}]
     */

    private String todayIncomeTitle;
    private String allIncomeTitle;
    private int productIsMore;
    private String queryDateTitle;
    private Double allIncome;
    private Double allIncomeSuccess;
/*    "tollFreeFee" : "待结金额",
            "tollFreeFeeOver" : "已结金额",
            "settledServiceFee" : "已扣服务费",
            "noSettleServiceFee" : "待扣服务费",*/
    private String settledServiceFee;
    private String noSettleServiceFee;

    public String getSettledServiceFee() {
        return settledServiceFee;
    }

    public void setSettledServiceFee(String settledServiceFee) {
        this.settledServiceFee = settledServiceFee;
    }

    public String getNoSettleServiceFee() {
        return noSettleServiceFee;
    }

    public void setNoSettleServiceFee(String noSettleServiceFee) {
        this.noSettleServiceFee = noSettleServiceFee;
    }

    public Double getAllIncomeSuccess() {
        return allIncomeSuccess;
    }

    public void setAllIncomeSuccess(Double allIncomeSuccess) {
        this.allIncomeSuccess = allIncomeSuccess;
    }

    private String todayIncome;
    private String queryTotleIncome;
    private String tollFreeFee;
    private String tollFreeFeeOver;
    private String queryDate;
    private List<QueryDateListBean> queryDateList;
    private List<TrendListBean> trendList;
    private List<DetailListBean> detailList;
    private List<ProductListBean> productList;
    private SettledFeeOver settledFeeOver;






    public String getTollFreeFeeOver() {
        return tollFreeFeeOver;
    }

    public void setTollFreeFeeOver(String tollFreeFeeOver) {
        this.tollFreeFeeOver = tollFreeFeeOver;
    }

    public String getTodayIncomeTitle() {
        return todayIncomeTitle;
    }

    public void setTodayIncomeTitle(String todayIncomeTitle) {
        this.todayIncomeTitle = todayIncomeTitle;
    }

    public String getAllIncomeTitle() {
        return allIncomeTitle;
    }

    public void setAllIncomeTitle(String allIncomeTitle) {
        this.allIncomeTitle = allIncomeTitle;
    }

    public int getProductIsMore() {
        return productIsMore;
    }

    public void setProductIsMore(int productIsMore) {
        this.productIsMore = productIsMore;
    }

    public String getQueryDateTitle() {
        return queryDateTitle;
    }

    public void setQueryDateTitle(String queryDateTitle) {
        this.queryDateTitle = queryDateTitle;
    }

    public Double getAllIncome() {
        return allIncome;
    }

    public void setAllIncome(Double allIncome) {
        this.allIncome = allIncome;
    }

    public String getTodayIncome() {
        return todayIncome;
    }

    public void setTodayIncome(String todayIncome) {
        this.todayIncome = todayIncome;
    }

    public String getQueryTotleIncome() {
        return queryTotleIncome;
    }

    public void setQueryTotleIncome(String queryTotleIncome) {
        this.queryTotleIncome = queryTotleIncome;
    }

    public String getTollFreeFee() {
        return tollFreeFee;
    }

    public void setTollFreeFee(String tollFreeFee) {
        this.tollFreeFee = tollFreeFee;
    }

    public String getQueryDate() {
        return queryDate;
    }

    public void setQueryDate(String queryDate) {
        this.queryDate = queryDate;
    }

    public List<QueryDateListBean> getQueryDateList() {
        return queryDateList;
    }

    public void setQueryDateList(List<QueryDateListBean> queryDateList) {
        this.queryDateList = queryDateList;
    }

    public List<TrendListBean> getTrendList() {
        return trendList;
    }

    public void setTrendList(List<TrendListBean> trendList) {
        this.trendList = trendList;
    }

    public List<DetailListBean> getDetailList() {
        return detailList;
    }

    public void setDetailList(List<DetailListBean> detailList) {
        this.detailList = detailList;
    }

    public List<ProductListBean> getProductList() {
        return productList;
    }

    public void setProductList(List<ProductListBean> productList) {
        this.productList = productList;
    }

    public static class QueryDateListBean {
        /**
         * name : 2017年
         * queryDate : 2017
         * child : [{"name":"2017年05月","queryDate":"2017-05","child":[]},{"name":"2017年04月","queryDate":"2017-04","child":[]},{"name":"2017年03月","queryDate":"2017-03","child":[]},{"name":"2017年02月","queryDate":"2017-02","child":[]},{"name":"2017年01月","queryDate":"2017-01","child":[]}]
         */

        private String name;
        private String queryDate;
        private List<QueryDateListBean> child;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getQueryDate() {
            return queryDate;
        }

        public void setQueryDate(String queryDate) {
            this.queryDate = queryDate;
        }

        public List<QueryDateListBean> getChild() {
            return child;
        }

        public void setChild(List<QueryDateListBean> child) {
            this.child = child;
        }

        public static class ChildBean {
            /**
             * name : 2017年05月
             * queryDate : 2017-05
             * child : []
             */

            private String name;
            private String queryDate;
            private List<?> child;

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getQueryDate() {
                return queryDate;
            }

            public void setQueryDate(String queryDate) {
                this.queryDate = queryDate;
            }

            public List<?> getChild() {
                return child;
            }

            public void setChild(List<?> child) {
                this.child = child;
            }
        }
    }

    public static class TrendListBean {
        /**
         * name : 01日
         * queryDate : 2017-04-01
         * specId : null
         * price : 21821.04
         * type : 1
         */

        private String name;
        private String queryDate;
        private String specId;
        private String price;
        private String type;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getQueryDate() {
            return queryDate;
        }

        public void setQueryDate(String queryDate) {
            this.queryDate = queryDate;
        }

        public String getSpecId() {
            return specId;
        }

        public void setSpecId(String specId) {
            this.specId = specId;
        }

        public String getPrice() {
            return price;
        }
        public Double getPriceY() {
            try {
                if (price != null && !"".equals(price)){
                    return Double.valueOf(price);
                }
            }catch (Exception e){
                e.printStackTrace();
            }

            return 0d;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }
    }

    public static class DetailListBean implements Serializable {
        /**
         * name : 04.05
         * queryDate : 2017-04-05
         * specId : null
         * price : 21864.52
         * type : 1
         */
/*
{
      "name" : "04.30",
      "queryDate" : "2017-04-30",
      "specId" : null,
      "price" : 0.0,
      "settleProgress" : "结算进度",
      "settledServiceFee" : "已结算明细",
      "noSettledServiceFee" : "应结算金额",
      "type" : 1
    }
* */
        private String settleProgress;
        private String settledServiceFee;
        private String noSettledServiceFee;

        public String getSettleProgress() {
            return settleProgress;
        }

        public void setSettleProgress(String settleProgress) {
            this.settleProgress = settleProgress;
        }

        public String getSettledServiceFee() {
            return settledServiceFee;
        }

        public void setSettledServiceFee(String settledServiceFee) {
            this.settledServiceFee = settledServiceFee;
        }

        public String getNoSettledServiceFee() {
            return noSettledServiceFee;
        }

        public void setNoSettledServiceFee(String noSettledServiceFee) {
            this.noSettledServiceFee = noSettledServiceFee;
        }

        private String name;
        private String queryDate;
        private String specId;
        private String price;
        private String type;


        private String totalFee;
        private String settleId;
        private String dateStr;

        private String order_id;
        private String order_no;

        public String getOrder_id() {
            return order_id;
        }

        public void setOrder_id(String order_id) {
            this.order_id = order_id;
        }

        public String getOrder_no() {
            return order_no;
        }

        public void setOrder_no(String order_no) {
            this.order_no = order_no;
        }

        public String getTotalFee() {
            return totalFee;
        }

        public void setTotalFee(String totalFee) {
            this.totalFee = totalFee;
        }

        public String getSettleId() {
            return settleId;
        }

        public void setSettleId(String settleId) {
            this.settleId = settleId;
        }

        public String getDateStr() {
            return dateStr;
        }

        public void setDateStr(String dateStr) {
            this.dateStr = dateStr;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getQueryDate() {
            return queryDate;
        }

        public void setQueryDate(String queryDate) {
            this.queryDate = queryDate;
        }

        public String getSpecId() {
            return specId;
        }

        public void setSpecId(String specId) {
            this.specId = specId;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }
    }



    public static class ProductListBean {
        /**
         * name : 粉西红柿
         * queryDate : null
         * specId : 31
         * price : 12372.78
         * type : 1
         */

        private String name;
        private String queryDate;
        private String specId;
        private Double price;
        private String type;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getQueryDate() {
            return queryDate;
        }

        public void setQueryDate(String queryDate) {
            this.queryDate = queryDate;
        }

        public String getSpecId() {
            return specId;
        }

        public void setSpecId(String specId) {
            this.specId = specId;
        }

        public Double getPrice() {
            return price;
        }

        public void setPrice(Double price) {
            this.price = price;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }
    }

    public static class SettledFeeOver{
        List<DetailListBean> content;
        String totalFee;

        public List<DetailListBean> getContent() {
            return content;
        }

        public void setContent(List<DetailListBean> content) {
            this.content = content;
        }

        public String getTotalFee() {
            return totalFee;
        }

        public void setTotalFee(String totalFee) {
            this.totalFee = totalFee;
        }
    }

    public SettledFeeOver getSettledFeeOver() {
        return settledFeeOver;
    }

    public void setSettledFeeOver(SettledFeeOver settledFeeOver) {
        this.settledFeeOver = settledFeeOver;
    }
}
